package com.miquan.minotehelper.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import java.io.File;

/**
 * Created by mq on 2015/8/6.
 * --- 流弊 ---
 */
public class ShareUtils {
    /**
     * 分享图片
     */
    public static void shareImage(Context context, File image) {
        Uri uri = Uri.fromFile(image);
        Intent intent = new Intent(Intent.ACTION_SEND);
        intent.putExtra(Intent.EXTRA_STREAM, uri);
        intent.setType("image/jpeg");
        context.startActivity(Intent.createChooser(intent, "分享"));
    }
}
